<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<jsp:useBean id="bannerDate" class="java.util.Date"/>



<c:set scope="session" value="${sessionScope.usuario}" var="usuario"/>

<c:if test="${null ne usuario}">
	<c:redirect url="index_logged.jsp"></c:redirect>
</c:if>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<title>KmLitro - Mobile</title>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
			<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
			<link href="/mobile/css/style.css" rel="stylesheet" type="text/css"/>
			<script type="text/javascript" src="../js/jquery-1.6.1.min.js"></script>
		</head>
		
		<body>
			<jsp:include page="top.jsp"/>
			<div id="soon">
		
				<c:set var="loginErrorDisplay" value="none" />
				<c:if test="${loginError ne null}">	
					<c:set var="loginErrorDisplay" value="block" />
				</c:if>
				<div id="login_error" style="margin-top: 10px; color: red; display: ${loginErrorDisplay};">
					Login ou senha inválidos!
				</div>
				<div id="form_container">
					<form id="frm_login" action="/mobile/login.mkml" method="post">
						<div class="login_form_label">
							<strong>Usuário</strong>
						</div>
						<input class="login_input" name="username" type="text" id="username" value="${user.login}"/>
						<br/>
						<div class="login_form_label">
							<strong>Senha</strong>
						</div>
						<input class="login_input" name="password" type="password" id="password"/>
						<br/>
<!-- 						<a href="javascript:void(0)" onclick="$('#frm_login').submit();" class="submit_login"> -->
<!-- 							<strong>Entrar</strong> -->
<!-- 						</a> -->
					<input type="submit" value="Entrar" class="submit_login" />
					</form>
				</div>
			</div>
			<br style="clear: both;"/>
			<jsp:include page="footer.jsp"/>
		</body>
</html>

